babl.git
17 years agoAdd include guards.
Martin Nordholts [Sun, 18 Jan 2009 18:18:19 +0000 (18:18 +0000)]
Add include guards.

* babl/babl-component.h
* babl/babl-conversion.h
* babl/babl-extension.h
* babl/babl-fish.h
* babl/babl-format.h
* babl/babl-image.h
* babl/babl-model.h
* babl/babl-sampling.h
* babl/babl-type.h

svn path=/trunk/; revision=388

17 years agoNamespace the include guard.
Martin Nordholts [Sun, 18 Jan 2009 18:12:52 +0000 (18:12 +0000)]
Namespace the include guard.

* babl/babl-db.h: Namespace the include guard.

svn path=/trunk/; revision=387

17 years agoDo a s/babl_destroy/babl_exit since 'destroy' is better paired
Martin Nordholts [Sun, 18 Jan 2009 15:14:59 +0000 (15:14 +0000)]
Do a s/babl_destroy/babl_exit since 'destroy' is better paired
with a 'create' and other libraries also use the 'init'/'exit'
pair, including GEGL. Keep a define for babl_destroy unless
BABL_DISABLE_DEPRECATED is defined.

* babl/babl-main.h
* babl/babl.c
* tests/babl-html-dump.c
* tests/babl_class_name.c
* tests/babl_fish_path_dhtml.c
* tests/babl_fish_path_fitness.c
* tests/conversions.c
* tests/formats.c
* tests/grayscale_to_rgb.c
* tests/introspect.c
* tests/models.c
* tests/nop.c
* tests/rgb_to_bgr.c
* tests/rgb_to_ycbcr.c
* tests/sanity.c
* tests/srgb_to_lab_u8.c
* tests/types.c

svn path=/trunk/; revision=386

17 years agoNew file collecting the type constants, includes and the union for the
Martin Nordholts [Sun, 18 Jan 2009 13:33:52 +0000 (13:33 +0000)]
New file collecting the type constants, includes and the union for the

* babl/babl-classes.h: New file collecting the type constants,
includes and the union for the babl classes. When adding a new
class this is the only installed header file that requires
modification.

* babl/babl-class.h: Move the class type enums to the new file.

* babl/babl.h: Include babl-classes.h instead of each class on its
own, and move the Babl union to the new file.

* babl/Makefile.am: Add the new file.

svn path=/trunk/; revision=385

17 years agobabl/babl-component.h babl/babl-conversion.h babl/babl-extension.h
Sven Neumann [Sun, 18 Jan 2009 10:36:09 +0000 (10:36 +0000)]
babl/babl-component.h babl/babl-conversion.h babl/babl-extension.h

2009-01-18  Sven Neumann  <sven@gimp.org>

* babl/babl-component.h
* babl/babl-conversion.h
* babl/babl-extension.h
* babl/babl-format.h
* babl/babl-model.h
* babl/babl-type.h: allow to disable the defines that were added
for backward compatibility by definining
BABL_DISABLE_DEPRECATED.

* babl/babl-image.h: removed trailing whitespace.

svn path=/trunk/; revision=384

17 years agoAdd #define babl_foo babl_foo_from_name macros, that should fix
Martin Nordholts [Sun, 18 Jan 2009 07:26:43 +0000 (07:26 +0000)]
Add #define babl_foo babl_foo_from_name macros, that should fix
most builds that broke due to the below refactoring.

* babl/babl-component.h
* babl/babl-conversion.h
* babl/babl-extension.h
* babl/babl-format.h
* babl/babl-model.h
* babl/babl-type.h

svn path=/trunk/; revision=383

17 years agos/babl_image/babl_image_new/
Martin Nordholts [Sat, 17 Jan 2009 21:31:48 +0000 (21:31 +0000)]
s/babl_image/babl_image_new/

* babl/babl-fish-reference.c
* babl/babl-image.c
* babl/babl-image.h

svn path=/trunk/; revision=382

17 years agos/babl_foo_init/babl_foo_class_init/
Martin Nordholts [Sat, 17 Jan 2009 19:30:40 +0000 (19:30 +0000)]
s/babl_foo_init/babl_foo_class_init/
s/babl_foo_destroy/babl_foo_class_destroy/
s/babl_foo_each/babl_foo_class_for_each/
s/babl_foo/babl_foo_from_name/
s/babl_foo_id/babl_foo_from_id/

* babl/babl-class.h
* babl/babl-conversion.c
* babl/babl-core.c
* babl/babl-fish-path.c
* babl/babl-fish-reference.c
* babl/babl-fish-stats.c
* babl/babl-fish.c
* babl/babl-format.c
* babl/babl-image.c
* babl/babl-internal.h
* babl/babl-introspect.c
* babl/babl-model.c
* babl/babl-sampling.c
* babl/babl-sanity.c
* babl/babl-type.c
* babl/babl.c
* babl/base/formats.c
* babl/base/model-gray.c
* babl/base/model-rgb.c
* babl/base/model-ycbcr.c
* babl/base/type-float.c
* babl/base/type-u16.c
* babl/base/type-u32.c
* babl/base/type-u8.c
* extensions/CIE-Lab.c
* extensions/frequency.c
* extensions/gegl-fixups.c
* extensions/gggl-lies.c
* extensions/gggl.c
* extensions/gimp-8bit.c
* extensions/naive-CMYK.c
* extensions/sse-fixups.c
* tests/babl-html-dump.c
* tests/babl_fish_path_fitness.c
* tests/conversions.c
* tests/formats.c
* tests/grayscale_to_rgb.c
* tests/models.c
* tests/rgb_to_bgr.c
* tests/rgb_to_ycbcr.c
* tests/types.c

svn path=/trunk/; revision=381

17 years agoFix bogus ChangeLog formating in two of my recent entries.
Martin Nordholts [Sat, 17 Jan 2009 18:45:56 +0000 (18:45 +0000)]
Fix bogus ChangeLog formating in two of my recent entries.

svn path=/trunk/; revision=380

17 years agoRemove babl_name() and babl_introspect() which slipped in here.
Martin Nordholts [Sat, 17 Jan 2009 18:43:54 +0000 (18:43 +0000)]
Remove babl_name() and babl_introspect() which slipped in here.

* babl/babl-class.h: Remove babl_name() and babl_introspect()
which slipped in here.

svn path=/trunk/; revision=379

17 years agoextensions/gegl-fixups.c #include <stdlib.h>
Martin Nordholts [Sat, 17 Jan 2009 18:42:03 +0000 (18:42 +0000)]
extensions/gegl-fixups.c #include <stdlib.h>

* extensions/gegl-fixups.c
* extensions/sse-fixups.c: #include <stdlib.h>

svn path=/trunk/; revision=378

17 years agoDon't #include <stdlib.h>
Martin Nordholts [Sat, 17 Jan 2009 14:49:30 +0000 (14:49 +0000)]
Don't #include <stdlib.h>

* babl/babl.h: Don't #include <stdlib.h>

* babl/base/formats.c
* babl/base/model-gray.c
* babl/base/model-rgb.c: #include <stdlib.h>

svn path=/trunk/; revision=377

17 years agoMake babl.h look clean.
Martin Nordholts [Sat, 17 Jan 2009 14:35:56 +0000 (14:35 +0000)]
Make babl.h look clean.

* babl/babl-introspect.h: New installed header for babl_name() and
babl_introspect().

* babl/babl.h: Include it.

* babl/Makefile.am: Add it.

svn path=/trunk/; revision=376

17 years agoFormating.
Martin Nordholts [Sat, 17 Jan 2009 14:20:11 +0000 (14:20 +0000)]
Formating.

* babl/babl-internal.h: Formating.

svn path=/trunk/; revision=375

17 years agoNew installed header file containing class and typesystem definitions and
Martin Nordholts [Sat, 17 Jan 2009 14:16:18 +0000 (14:16 +0000)]
New installed header file containing class and typesystem definitions and

* babl/babl-class.h: New installed header file containing class
and typesystem definitions and types.

* babl/babl.h: Include it.

* babl/Makefile.am: Add it.

svn path=/trunk/; revision=374

17 years agoMove forward declaration of BablList to the beginning...
Martin Nordholts [Sat, 17 Jan 2009 14:05:23 +0000 (14:05 +0000)]
Move forward declaration of BablList to the beginning...

svn path=/trunk/; revision=373

17 years agoMove up forward declaration of BablList.
Martin Nordholts [Sat, 17 Jan 2009 14:03:37 +0000 (14:03 +0000)]
Move up forward declaration of BablList.

* babl/babl.h: Move up forward declaration of BablList.

* babl/babl-list.h: Completely rely on that declaration.

svn path=/trunk/; revision=372

17 years agoDon't have BABL_ALPHA_THRESHOLD public yet.
Martin Nordholts [Sat, 17 Jan 2009 13:47:52 +0000 (13:47 +0000)]
Don't have BABL_ALPHA_THRESHOLD public yet.

* babl/babl.h: Don't have BABL_ALPHA_THRESHOLD public yet.

* babl/base/util.h: Put it here for now instead.

svn path=/trunk/; revision=371

17 years agoInstead of having BABL_CLASS() plus variants and making the macros
Martin Nordholts [Sat, 17 Jan 2009 13:33:49 +0000 (13:33 +0000)]
Instead of having BABL_CLASS() plus variants and making the macros
expand to different things depending on if they are used in a
header or a .c file, have two versions: BABL_CLASS_DECLARE() and
BABL_CLASS_IMPLEMENT(). This enables further refactorisations of
the babl.h header.

* babl.h: Do the name changes and remove the unpleasant #undefs at
the bottom.

* babl-internal.h: Do the name changes.

* babl-component.[ch]
* babl-conversion.[ch]
* babl-extension.[ch]
* babl-fish.[ch]
* babl-format.[ch]
* babl-image.h
* babl-model.[ch]
* babl-sampling.h
* babl-type.[ch]: Adjust to changes.

svn path=/trunk/; revision=370

17 years agoDon't redeclare functions declared with the BABL_CLASS() or
Martin Nordholts [Sat, 17 Jan 2009 13:06:48 +0000 (13:06 +0000)]
Don't redeclare functions declared with the BABL_CLASS() or
BABL_NAMED_CLASS() macros.

* babl-component.h
* babl-conversion.h
* babl-extension.h
* babl-fish.h
* babl-format.h
* babl-image.h
* babl-model.h
* babl-sampling.h
* babl-type.h

svn path=/trunk/; revision=369

17 years agoNew installed file with babl_init() and babl_destroy() declarations.
Martin Nordholts [Sat, 17 Jan 2009 10:58:59 +0000 (10:58 +0000)]
New installed file with babl_init() and babl_destroy() declarations.

* babl/babl-main.h: New installed file with babl_init() and
babl_destroy() declarations.

* babl/babl.h: Include it.

* babl/Makefile.am: Add it.

svn path=/trunk/; revision=368

17 years agoNew installed header file that contains portability macros.
Martin Nordholts [Sat, 17 Jan 2009 10:43:32 +0000 (10:43 +0000)]
New installed header file that contains portability macros.

* babl/babl-macros.h: New installed header file that contains
portability macros.

* babl/babl.h: Include it and don't define portability macros
here.

* babl/Makefile.am: Add it.

svn path=/trunk/; revision=367

17 years agoMake BablClassType an int again, it doesn't make sense as an enum as the
Martin Nordholts [Thu, 15 Jan 2009 20:14:16 +0000 (20:14 +0000)]
Make BablClassType an int again, it doesn't make sense as an enum as the

* babl/babl.h: Make BablClassType an int again, it doesn't make
sense as an enum as the set of class types is not a natural
predefined set.

svn path=/trunk/; revision=366

17 years agoFix misformated entry.
Martin Nordholts [Thu, 15 Jan 2009 19:25:27 +0000 (19:25 +0000)]
Fix misformated entry.

svn path=/trunk/; revision=365

17 years agoMake BablClassType an enum instead of an unsigned int contaning enum
Martin Nordholts [Wed, 14 Jan 2009 20:59:41 +0000 (20:59 +0000)]
Make BablClassType an enum instead of an unsigned int contaning enum

* babl/babl.h: Make BablClassType an enum instead of an unsigned
int contaning enum values.

svn path=/trunk/; revision=364

17 years agoUse a lowercase 'a' in 0xbab100.
Martin Nordholts [Wed, 14 Jan 2009 20:42:09 +0000 (20:42 +0000)]
Use a lowercase 'a' in 0xbab100.

* babl/babl.h: Use a lowercase 'a' in 0xbab100.

svn path=/trunk/; revision=363

17 years agoDon't document forward declarations and move them down a bit to make them
Martin Nordholts [Wed, 14 Jan 2009 20:38:47 +0000 (20:38 +0000)]
Don't document forward declarations and move them down a bit to make them

* babl/babl.h: Don't document forward declarations and move them
down a bit to make them less eminent.

svn path=/trunk/; revision=362

17 years agoRemove BABL_HARD_MAX_PATH_LENGTH from here, it's only for internal use.
Martin Nordholts [Wed, 14 Jan 2009 20:06:58 +0000 (20:06 +0000)]
Remove BABL_HARD_MAX_PATH_LENGTH from here, it's only for internal use.

* babl/babl.h:
* babl/babl-internal.h: Remove BABL_HARD_MAX_PATH_LENGTH from
here, it's only for internal use.

* babl/babl-fish-path.c: #define BABL_HARD_MAX_PATH_LENGTH locally
here.

svn path=/trunk/; revision=361

17 years agoInstead of an arbitrary threshold, use one hundredth of the channel
Martin Nordholts [Wed, 14 Jan 2009 19:39:56 +0000 (19:39 +0000)]
Instead of an arbitrary threshold, use one hundredth of the channel

* babl/babl.h (BABL_ALPHA_THRESHOLD): Instead of an arbitrary
threshold, use one hundredth of the channel intensity resolution
when using 16 bit integers i.e. 0.01 / (2^16 - 1).

svn path=/trunk/; revision=360

17 years agoDon't just eek when an assertion fails, also say exactly what failed.
Martin Nordholts [Mon, 8 Dec 2008 18:28:39 +0000 (18:28 +0000)]
Don't just eek when an assertion fails, also say exactly what failed.

* babl/babl-internal.h (babl_assert): Don't just eek when an
assertion fails, also say exactly what failed.

svn path=/trunk/; revision=359

17 years agoshow in red the conversions that are worse than the current BABL_TOLERANCE
Øyvind Kolås [Sun, 16 Nov 2008 20:35:57 +0000 (20:35 +0000)]
show in red the conversions that are worse than the current BABL_TOLERANCE

* babl/babl-fish-stats.c: (legal_error), (each_conv): show in red the
conversions that are worse than the current BABL_TOLERANCE instead of
the earlier arbitrary 0.01.

svn path=/trunk/; revision=358

17 years agoUse the default babl tolerance level if BABL_TOLERANCE is the empty string
Martin Nordholts [Sun, 16 Nov 2008 12:55:17 +0000 (12:55 +0000)]
Use the default babl tolerance level if BABL_TOLERANCE is the empty string

* babl/babl-fish-path.c: Use the default babl tolerance level if
BABL_TOLERANCE is the empty string so that we don't get a
tolerance level of 0.0 in that case.

svn path=/trunk/; revision=357

17 years agoAdd #define BABL_ALPHA_THRESHOLD which is the alpha threshold used in the
Martin Nordholts [Sun, 16 Nov 2008 12:36:50 +0000 (12:36 +0000)]
Add #define BABL_ALPHA_THRESHOLD which is the alpha threshold used in the

* babl/babl.h: Add #define BABL_ALPHA_THRESHOLD which is the alpha
threshold used in the reference implementation for
un-pre-multiplication of color data.

* babl/base/model-rgb.c
* babl/base/model-gray.c
* extensions/gegl-fixups.c: Use the define, a consistent alpha
threshold improves accurucy of conversions.

svn path=/trunk/; revision=356

17 years agoextensions/gegl-fixups.c (conv_rgbAF_sdl32) Make un-pre-multiplication
Martin Nordholts [Sun, 16 Nov 2008 12:12:19 +0000 (12:12 +0000)]
extensions/gegl-fixups.c (conv_rgbAF_sdl32) Make un-pre-multiplication

* extensions/gegl-fixups.c (conv_rgbAF_sdl32)
* babl/base/model-gray.c (premultiplied_to_non_premultiplied):
Make un-pre-multiplication with close-to-zero alpha values result
in complete black instead of a bit brigher than black.

svn path=/trunk/; revision=355

17 years agouse the lookup tables to speed up the conversion 8still error of 0.002677
Øyvind Kolås [Sat, 8 Nov 2008 23:20:29 +0000 (23:20 +0000)]
use the lookup tables to speed up the conversion 8still error of 0.002677

* extensions/gegl-fixups.c: (conv_rgbAF_lrgba8): use the lookup tables
to speed up the conversion 8still error of 0.002677 though).

svn path=/trunk/; revision=354

17 years agomake all components 0.0 when alpha < 0.00001.
Øyvind Kolås [Thu, 6 Nov 2008 20:19:20 +0000 (20:19 +0000)]
make all components 0.0 when alpha < 0.00001.

* extensions/gegl-fixups.c: (conv_rgbAF_rgbaF),
(conv_rgbAF_lrgba8): make all components 0.0 when alpha < 0.00001.

svn path=/trunk/; revision=353

17 years agoadded some more missing conversions.
Øyvind Kolås [Tue, 4 Nov 2008 00:31:34 +0000 (00:31 +0000)]
added some more missing conversions.

* extensions/gegl-fixups.c: (conv_rgbAF_rgbaF),
(conv_rgbAF_lrgba8), (init): added some more missing conversions.

svn path=/trunk/; revision=352

17 years agoadded missing, needed conversion.
Øyvind Kolås [Tue, 4 Nov 2008 00:04:23 +0000 (00:04 +0000)]
added missing, needed conversion.

* extensions/gegl-fixups.c: (conv_rgbaF_rgbAF), (init): added missing,
needed conversion.

svn path=/trunk/; revision=351

17 years agorenamed to ..
Øyvind Kolås [Wed, 1 Oct 2008 20:39:39 +0000 (20:39 +0000)]
renamed to ..

* COPYING.LESSER: renamed to ..
* COPYING:

svn path=/trunk/; revision=350

17 years ago`:='-style assignments are not portable
Sven Neumann [Wed, 9 Jul 2008 13:24:52 +0000 (13:24 +0000)]
`:='-style assignments are not portable

2008-07-09  Sven Neumann  <sven@gimp.org>

* babl/base/Makefile.am: `:='-style assignments are not portable

svn path=/trunk/; revision=349

17 years agoalso use AM_CPPFLAGS and CPPFLAGS for building sse-fixups.
Sven Neumann [Fri, 4 Jul 2008 12:47:51 +0000 (12:47 +0000)]
also use AM_CPPFLAGS and CPPFLAGS for building sse-fixups.

2008-07-04  Sven Neumann  <sven@gimp.org>

* extensions/Makefile.am: also use AM_CPPFLAGS and CPPFLAGS for
building sse-fixups.

svn path=/trunk/; revision=348

17 years agoadded typedef size_t gsize to the set of gtypes lifted from glib. spotted
Øyvind Kolås [Tue, 1 Jul 2008 21:23:52 +0000 (21:23 +0000)]
added typedef size_t gsize to the set of gtypes lifted from glib. spotted

* babl/babl-cpuaccel.c: added typedef size_t gsize to the set of
gtypes lifted from glib. spotted by Marianne Gagnon.

svn path=/trunk/; revision=347

17 years agoapplied patch from dmacks at netspace.org cleaning up some of the build
Øyvind Kolås [Tue, 1 Jul 2008 21:05:41 +0000 (21:05 +0000)]
applied patch from dmacks at netspace.org cleaning up some of the build

* extensions/Makefile.am: applied patch from dmacks at netspace.org
cleaning up some of the build system.

svn path=/trunk/; revision=346

17 years agochanged RrRiG... back to RrGrBrArRiGiBiAi.
Zhang Junbo [Fri, 27 Jun 2008 20:12:05 +0000 (20:12 +0000)]
changed RrRiG... back to RrGrBrArRiGiBiAi.

* extensions/frequency.c: changed RrRiG... back to RrGrBrArRiGiBiAi.

svn path=/trunk/; revision=345

17 years agosome work on frequency_to_rgba.
Zhang Junbo [Thu, 26 Jun 2008 22:27:21 +0000 (22:27 +0000)]
some work on frequency_to_rgba.

* extensions/frequency.c: some work on frequency_to_rgba.

svn path=/trunk/; revision=344

17 years agoimplenmented frequency_to_rgba.
Zhang Junbo [Thu, 26 Jun 2008 21:38:05 +0000 (21:38 +0000)]
implenmented frequency_to_rgba.

* extensions/frequency.c: implenmented frequency_to_rgba.

svn path=/trunk/; revision=343

17 years agochanged RrGrBr... into RrRiGrGiBrBiArAi.
Zhang Junbo [Sun, 22 Jun 2008 15:10:17 +0000 (15:10 +0000)]
changed RrGrBr... into RrRiGrGiBrBiArAi.

* extensions/frequency.c: changed RrGrBr... into RrRiGrGiBrBiArAi.

svn path=/trunk/; revision=342

17 years agoadded the format "frequency double".
Zhang Junbo [Sun, 22 Jun 2008 14:03:07 +0000 (14:03 +0000)]
added the format "frequency double".

* extensions/frequency.c: added the format "frequency double".

svn path=/trunk/; revision=341

17 years agoensure that the "w3m must be available" message is properly displayed:
Sam Hocevar [Mon, 16 Jun 2008 13:04:16 +0000 (13:04 +0000)]
ensure that the "w3m must be available" message is properly displayed:

* Makefile.am: ensure that the "w3m must be available" message is
properly displayed: dist-hook is only called after builddir is filled.

svn path=/trunk/; revision=340

17 years agoadded dummy model "frequency" and dummy format "frequency float" to be
Øyvind Kolås [Fri, 13 Jun 2008 20:32:08 +0000 (20:32 +0000)]
added dummy model "frequency" and dummy format "frequency float" to be

* extensions/frequency.c: added dummy model "frequency" and dummy
format "frequency float" to be used purely for creating, storing,
accessing but not converting to and from normal tristimulus spaces.
can be used by GeglBuffer to create frequency domain buffers that
are processed in a similar manner to normal buffers.

svn path=/trunk/; revision=339

17 years agopost release increment of version to 0.0.23
Øyvind Kolås [Thu, 12 Jun 2008 23:24:11 +0000 (23:24 +0000)]
post release increment of version to 0.0.23

* configure.ac: post release increment of version to 0.0.23

svn path=/trunk/; revision=338

17 years ago0.0.22 released
Øyvind Kolås [Thu, 12 Jun 2008 23:20:58 +0000 (23:20 +0000)]
0.0.22 released

svn path=/trunk/; revision=337

17 years ago0.0.20 released
Øyvind Kolås [Thu, 12 Jun 2008 23:20:31 +0000 (23:20 +0000)]
0.0.20 released

svn path=/trunk/; revision=336

17 years agomoved the babl directory overview here from the GEGL site.
Øyvind Kolås [Thu, 12 Jun 2008 22:40:23 +0000 (22:40 +0000)]
moved the babl directory overview here from the GEGL site.

* docs/index-static.html.in: moved the babl directory overview here
from the GEGL site.

svn path=/trunk/; revision=335

17 years agofixed indentation and misplaced ' spotted by Jan Heller.
Øyvind Kolås [Thu, 12 Jun 2008 22:01:07 +0000 (22:01 +0000)]
fixed indentation and misplaced ' spotted by Jan Heller.

* docs/index-static.html.in: fixed indentation and misplaced ' spotted
by Jan Heller.

svn path=/trunk/; revision=334

17 years agomoved the BABL_TOLERANCE documentation paragraph in under Environment
Øyvind Kolås [Thu, 12 Jun 2008 21:58:24 +0000 (21:58 +0000)]
moved the BABL_TOLERANCE documentation paragraph in under Environment

* docs/index-static.html.in: moved the BABL_TOLERANCE documentation
paragraph in under Environment heading.

svn path=/trunk/; revision=333

17 years agoremoved markup mistake that introduced horizontal scrolling in gecko.
Øyvind Kolås [Thu, 12 Jun 2008 21:53:50 +0000 (21:53 +0000)]
removed markup mistake that introduced horizontal scrolling in gecko.

* docs/index-static.html.in: removed markup mistake that introduced
horizontal scrolling in gecko.

svn path=/trunk/; revision=332

17 years agos/BABL_TOLERANCE/ s/BABL_ACCURACY/BABL_TOLERANCE/
Øyvind Kolås [Thu, 12 Jun 2008 21:43:55 +0000 (21:43 +0000)]
s/BABL_TOLERANCE/ s/BABL_ACCURACY/BABL_TOLERANCE/

* babl/babl-fish-path.c: (legal_error): s/BABL_TOLERANCE/
* docs/index-static.html.in: s/BABL_ACCURACY/BABL_TOLERANCE/

svn path=/trunk/; revision=331

17 years agos/BABL_ERROR/BABL_ACCURACY/ s/BABL_ERROR/BABL_ACCURACY/ added a missing
Øyvind Kolås [Thu, 12 Jun 2008 21:30:55 +0000 (21:30 +0000)]
s/BABL_ERROR/BABL_ACCURACY/ s/BABL_ERROR/BABL_ACCURACY/ added a missing

* babl/babl-fish-path.c: (legal_error): s/BABL_ERROR/BABL_ACCURACY/
* docs/index-static.html.in: s/BABL_ERROR/BABL_ACCURACY/
* AUTHORS: added a missing space.

svn path=/trunk/; revision=330

17 years agoadded a html comment shortening the news shown. assed link to changelog in
Øyvind Kolås [Thu, 12 Jun 2008 21:20:46 +0000 (21:20 +0000)]
added a html comment shortening the news shown. assed link to changelog in

* NEWS: added a html comment shortening the news shown.
* docs/index-static.html.in: assed link to changelog in svn after
news. Updated urls with s/viewcvs/viewvc/.

svn path=/trunk/; revision=329

17 years agoadded TODO moved TODO list from here to here, also edited it a bit.
Øyvind Kolås [Thu, 12 Jun 2008 21:13:48 +0000 (21:13 +0000)]
added TODO moved TODO list from here to here, also edited it a bit.

* Makefile.am: added TODO
* docs/index-static.html.in: moved TODO list from here
* TODO: to here, also edited it a bit.
* docs/Makefile.am: include TODO in result.

svn path=/trunk/; revision=328

17 years agoreindented code, documented BABL_ERROR.
Øyvind Kolås [Thu, 12 Jun 2008 21:00:34 +0000 (21:00 +0000)]
reindented code, documented BABL_ERROR.

* docs/index-static.html.in: reindented code, documented BABL_ERROR.

svn path=/trunk/; revision=327

17 years agotypo fix
Øyvind Kolås [Thu, 12 Jun 2008 20:35:48 +0000 (20:35 +0000)]
typo fix

svn path=/trunk/; revision=326

17 years agoupdated. updated. improved introduction and feature list.
Øyvind Kolås [Thu, 12 Jun 2008 20:34:51 +0000 (20:34 +0000)]
updated. updated. improved introduction and feature list.

* AUTHORS: updated.
* NEWS: updated.
* docs/index-static.html.in: improved introduction and feature list.

svn path=/trunk/; revision=325

17 years agoAdded fallback non-SSE routine if the input buffer is not aligned to 16
Jan Heller [Thu, 12 Jun 2008 17:10:55 +0000 (17:10 +0000)]
Added fallback non-SSE routine if the input buffer is not aligned to 16

2008-06-12  Jan Heller  <jheller@svn.gnome.org>

        * extensions/sse-fixups.c (conv_rgbaF_linear_rgb8_linear),
        (conv_rgbaF_linear_rgba8_linear): Added fallback non-SSE routine
        if the input buffer is not aligned to 16 bytes.

svn path=/trunk/; revision=324

17 years agoUpdated contact info.
Jan Heller [Wed, 4 Jun 2008 22:36:02 +0000 (22:36 +0000)]
Updated contact info.

2008-06-05  Jan Heller  <jheller@svn.gnome.org>

        * AUTHORS: Updated contact info.

svn path=/trunk/; revision=323

17 years agoUpdated download link.
Jan Heller [Tue, 3 Jun 2008 14:58:09 +0000 (14:58 +0000)]
Updated download link.

2008-06-03  Jan Heller  <jheller@svn.gnome.org>

        * INSTALL.in: Updated download link.

svn path=/trunk/; revision=322

17 years agobabl_get_version () moved into separate source file.
Jan Heller [Tue, 3 Jun 2008 14:11:34 +0000 (14:11 +0000)]
babl_get_version () moved into separate source file.

2008-06-03  Jan Heller  <jheller@svn.gnome.org>

        babl_get_version () moved into separate source file.

        * babl/Makefile.am: Added babl-version.c.
        * babl/babl-version.c (babl_get_version): Implemented.
        * babl/babl-version.h.in: Added babl_get_version () declaration.
        * babl/babl.c: Removed babl_get_version ().
        * babl/babl.h: Removed babl_get_version () declaration.

svn path=/trunk/; revision=321

17 years agoAdded.
Jan Heller [Tue, 3 Jun 2008 13:26:31 +0000 (13:26 +0000)]
Added.

2008-06-03  Jan Heller  <jheller@svn.gnome.org>

        * babl/babl-version.h.in: Added.

svn path=/trunk/; revision=319

17 years agoAdded babl_get_version () to the public API.
Jan Heller [Tue, 3 Jun 2008 12:12:36 +0000 (12:12 +0000)]
Added babl_get_version () to the public API.

2008-06-03  Jan Heller  <jheller@svn.gnome.org>

        Added babl_get_version () to the public API.

        * babl/Makefile.am: Added babl-version.h to library_include_HEADERS.
        * babl/babl-version.h.in: Added macros to expand to babl version
        information.
        * babl/babl.c (babl_get_version): Implemented.
        * babl/babl.h: Include babl-version.h, declare babl_get_version ().
        * configure.ac: Added babl-version.h to AC_CONFIG_FILES.

svn path=/trunk/; revision=318

17 years agoFixed conditionally compiled code.
Jan Heller [Fri, 23 May 2008 20:49:39 +0000 (20:49 +0000)]
Fixed conditionally compiled code.

2008-05-23  Jan Heller  <jheller@svn.gnome.org>

        * extensions/sse-fixups.c (init): Fixed conditionally compiled code.

svn path=/trunk/; revision=317

17 years agoAdded support for CPU acceleration, RGBA float -> RGB u8 and RGBA float ->
Jan Heller [Fri, 23 May 2008 13:36:35 +0000 (13:36 +0000)]
Added support for CPU acceleration, RGBA float -> RGB u8 and RGBA float ->

2008-05-23  Jan Heller  <jheller@svn.gnome.org>

        Added support for CPU acceleration, RGBA float -> RGB u8 and
        RGBA float -> RGBA u8 SSE accelerated conversions.

        * babl/Makefile.am: Added babl-cpuaccel.[ch].
        * babl/babl-cpuaccel.h:
        * babl/babl-cpuaccel.c (babl_cpu_accel_get_support),
        (babl_cpu_accel_set_use), (arch_get_vendor), (arch_accel_intel),
        (arch_accel_amd), (arch_accel_centaur), (arch_accel_cyrix),
        (sigill_handler), (arch_accel_sse_os_support), (arch_accel),
        (cpu_accel): Runtime CPU detection code. Ported from GIMP.
        * babl/babl-internal.h: Include babl-cpuaccel.h.
        * babl/babl-memory.c (babl_malloc): Make babl_malloc align memory to
        BABL_ALIGN==16 boundaries.
        * babl/babl.c (babl_init): Enabled CPU acceleration.
        * configure.ac: Added compile time MMX/SSE/AltiVec detection. Ported
        from GIMP.
        * extensions/Makefile.am: Added SSE_EXTRA_CFLAGS for sse-fixups.c
        compilation.
        * extensions/sse-fixups.c (conv_rgbaF_linear_rgb8_linear),
        (conv_rgbaF_linear_rgba8_linear), (init): Added RGBA float -> RGB u8
        and RGBA float -> RGBA u8 SSE accelerated conversions.

svn path=/trunk/; revision=316

17 years agochanged fallback macro to have the same return type as rint().
Jan Heller [Wed, 21 May 2008 22:31:39 +0000 (22:31 +0000)]
changed fallback macro to have the same return type as rint().

2008-05-22  Jan Heller  <jheller@svn.gnome.org>

        * extensions/util.h: changed fallback macro to have the
        same return type as rint().

svn path=/trunk/; revision=315

17 years agochanged fallback macro to have the same return type as rint().
Sven Neumann [Wed, 21 May 2008 09:48:39 +0000 (09:48 +0000)]
changed fallback macro to have the same return type as rint().

2008-05-21  Sven Neumann  <sven@gimp.org>

* babl/babl-internal.h (rint): changed fallback macro to have the
same return type as rint().

svn path=/trunk/; revision=314

17 years agofallback to floor function when rint function is not available.
Jan Heller [Tue, 20 May 2008 22:11:12 +0000 (22:11 +0000)]
fallback to floor function when rint function is not available.

2008-05-21  Jan Heller  <jheller@svn.gnome.org>

        * babl/babl-internal.h:
        * babl/base/type-u16.c:
        * babl/base/type-u32.c:
        * babl/base/type-u8.c:
        * extensions/CIE-Lab.c:
        * extensions/gegl-fixups.c:
        * extensions/gggl-lies.c:
        * extensions/gggl.c:
        * extensions/gimp-8bit.c:
        * extensions/util.h: fallback to floor function when rint function
        is not available.

        * configure.ac: added check for rint function.

svn path=/trunk/; revision=313

17 years agoadded naive versions of respective conversions.
Jan Heller [Tue, 20 May 2008 14:38:02 +0000 (14:38 +0000)]
added naive versions of respective conversions.

2008-05-20  Jan Heller  <jheller@svn.gnome.org>

        * extensions/gimp-8bit.c (conv_rgbaF_linear_rgb8_linear),
        (conv_rgbaF_linear_rgba8_linear), (init): added naive versions
        of respective conversions.

svn path=/trunk/; revision=312

17 years agoinitialize format.visited.
Sven Neumann [Wed, 14 May 2008 15:18:26 +0000 (15:18 +0000)]
initialize format.visited.

2008-05-14  Sven Neumann  <sven@gimp.org>

* babl/babl-format.c (format_new): initialize format.visited.

* babl/babl-format.h
* babl/babl-fish-path.c: formatting.

svn path=/trunk/; revision=311

17 years agoformatting.
Sven Neumann [Wed, 16 Apr 2008 09:49:24 +0000 (09:49 +0000)]
formatting.

2008-04-16  Sven Neumann  <sven@gimp.org>

* babl/babl.h: formatting.

svn path=/trunk/; revision=310

17 years agosplit up into ... Separate header files.
Øyvind Kolås [Wed, 16 Apr 2008 09:44:54 +0000 (09:44 +0000)]
split up into ... Separate header files.

* babl/babl.h: split up into ...
Separate header files.
* babl/babl-component.h:
* babl/babl-conversion.h:
* babl/babl-extension.h:
* babl/babl-fish.h:
* babl/babl-format.h:
* babl/babl-image.h:
* babl/babl-model.h:
* babl/babl-sampling.h:
* babl/babl-type.h:
* babl/Makefile.am: install new headers.

svn path=/trunk/; revision=309

17 years agoremoved babl-classes.h removed and mostly folded into ... .. this file,
Øyvind Kolås [Tue, 15 Apr 2008 22:06:32 +0000 (22:06 +0000)]
removed babl-classes.h removed and mostly folded into ... .. this file,

* babl/Makefile.am: removed babl-classes.h
* babl/babl-classes.h: removed and mostly folded into ...
* babl/babl.h:  .. this file, which has been reorganized to contain
each separate class by itself.
* babl/babl-internal.h: simplified code renamed BABL_CLASS_TEMPLATE to
be just BABL_CLASS or BABL_CLASS_MINIMAL.
* babl/babl-fish.c: (babl_fish): do not accept varargs, use use
BABL_CLASS_MINIMAL.
* babl/babl-component.c:
* babl/babl-conversion.c:
* babl/babl-extension.c:
* babl/babl-format.c:
* babl/babl-model.c:
* babl/babl-type.c: use BABL_CLASS instead of BABL_CLASS_TEMPLATE
* babl/babl-hash-table.h:
* babl/babl-list.h:
* babl/babl-db.h: changed include warning since babl-classes doesn't
exist anymore.

svn path=/trunk/; revision=308

17 years agoextensions/util.h removed trailing whitespace.
Sven Neumann [Tue, 15 Apr 2008 09:25:30 +0000 (09:25 +0000)]
extensions/util.h removed trailing whitespace.

2008-04-15  Sven Neumann  <sven@gimp.org>

* extensions/util.h
* babl/*.[ch]: removed trailing whitespace.

svn path=/trunk/; revision=307

17 years agothis function has no return value, declare it as void.
Sven Neumann [Tue, 15 Apr 2008 09:19:18 +0000 (09:19 +0000)]
this function has no return value, declare it as void.

2008-04-15  Sven Neumann  <sven@gimp.org>

* babl/babl-fish-path.c (init_path_instrumentation): this function
has no return value, declare it as void.

svn path=/trunk/; revision=306

17 years agoApplied patch from Jan Heller.
Øyvind Kolås [Sun, 13 Apr 2008 22:52:49 +0000 (22:52 +0000)]
Applied patch from Jan Heller.
* babl/babl-fish-path.c: (get_conversion_path), (babl_fish_path),
(test_create), (init_path_instrumentation),
(destroy_path_instrumentation), (get_path_instrumentation): Improved
fish path instrumentation during the search for a new one to optimize
for speed. Added logic to disallow creation of a fish path that is
actually slower than appropriate reference fish.
* babl/babl-util.[ch]: (babl_process_cost): New function for unified
timing formula for babl processings.
* babl/babl-conversion.c: (babl_conversion_error): Make use of the
new babl_process_cost function.
* extensions/gimp-8bit.c: Added a function declaration to prevent
compiler warning.

svn path=/trunk/; revision=305

17 years agoApplied patch from Jan Heller that improves logic of go_fishing code
Øyvind Kolås [Tue, 8 Apr 2008 17:01:23 +0000 (17:01 +0000)]
Applied patch from Jan Heller that improves logic of go_fishing code
in babl-fish.c. The current code searches list of all fishes while
looking for suitable preexistent BABL_FISH_PATH instance. The new code
only searches relevant part of database's hash table. Further, the
current code searches for fish path every time such a babl fish is
requested, even though the same fish path has been requested before
and not found. The new code creates dummy BABL_FISH instance with
appropriate source/destination formats and inserts it into the fish
database to indicate that fish path has been searched for and not
found.
* babl/babl-fish.c: (find_fish_path), (find_memcpy_fish),
(babl_fish_get_id), (babl_fish):
* babl/babl-fish-path.c: (babl_fish_path):
* babl/babl-fish-reference.c: (babl_fish_reference):
* babl/babl-fish-simple.c: (babl_fish_simple):
* babl/babl-internal.h:

svn path=/trunk/; revision=304

17 years agonew file defining BABL_DETECT_CFLAGS() macro.
Sven Neumann [Sun, 6 Apr 2008 11:53:24 +0000 (11:53 +0000)]
new file defining BABL_DETECT_CFLAGS() macro.

2008-04-06  Sven Neumann  <sven@gimp.org>

* acinclude.m4: new file defining BABL_DETECT_CFLAGS() macro.

* configure.ac: set CFLAGS to get some extra compiler warnings.

* babl/babl-fish-stats.c (conversions): fixed old-style function
definition.

* Makefile.am: formatting.

svn path=/trunk/; revision=303

18 years agoSparse fixes.
Mukund Sivaraman [Thu, 3 Apr 2008 02:50:27 +0000 (02:50 +0000)]
Sparse fixes.

2008-04-02  Mukund Sivaraman <muks@mukund.org>

        Sparse fixes.

        * babl/babl-internal.h: fflush() takes pointer.

        * babl/babl-conversion.c: Don't mix code and declarations.

        * babl/babl-fish-reference.c: Fixed array assignment.

svn path=/trunk/; revision=302

18 years agoApplied patch from Jan Heller that ports BablFishPath class to the new
Øyvind Kolås [Thu, 3 Apr 2008 00:47:05 +0000 (00:47 +0000)]
Applied patch from Jan Heller that ports BablFishPath class to the new
list API and the list API is a bit expanded. Further, the algorithm
for generating the shortest conversion path is reformulated to be more
readable and comprehensible and thoroughly commented. The algorithm
for processing the conversion paths is reformulated and commented.
Also contains minor readability cleanups and speedups.
* babl/babl-classes.h:
* babl/babl-conversion.c:
* babl/babl-db.c:
* babl/babl-fish-path.c:
* babl/babl-fish-stats.c:
* babl/babl-fish.c:
* babl/babl-list.c:
* babl/babl-list.h:
* tests/babl_fish_path_fitness.c:

svn path=/trunk/; revision=301

18 years agoapplied patch from Jan Heller that improves readability by using the newly
Øyvind Kolås [Tue, 1 Apr 2008 22:39:28 +0000 (22:39 +0000)]
applied patch from Jan Heller that improves readability by using the newly

* babl/babl-classes.h:
* babl/babl-conversion.c:
* babl/babl-db.c:
* babl/babl-fish-path.c:
* babl/babl-fish.c:
* babl/babl-format.c:
* babl/babl-internal.h:
* babl/babl-introspect.c:
* babl/babl-list.c:
* babl/babl-list.h:
* babl/babl-model.c:
* babl/babl-sampling.c:
* babl/babl-sanity.c:
* babl/babl-type.c:
* babl/babl-util.[ch]: applied patch from Jan Heller that improves
readability by using the newly introduced BablList structure.

svn path=/trunk/; revision=300

18 years agoadded Jan Heller and obfuscated the email addresses.
Sven Neumann [Mon, 31 Mar 2008 14:23:55 +0000 (14:23 +0000)]
added Jan Heller and obfuscated the email addresses.

2008-03-31  Sven Neumann  <sven@gimp.org>

* AUTHORS: added Jan Heller and obfuscated the email addresses.

svn path=/trunk/; revision=299

18 years agobabl/babl-component.c babl/babl-conversion.c babl/babl-db.c
Sven Neumann [Sat, 29 Mar 2008 19:02:20 +0000 (19:02 +0000)]
babl/babl-component.c babl/babl-conversion.c babl/babl-db.c

2008-03-29  Sven Neumann  <sven@gimp.org>

* babl/babl-component.c
* babl/babl-conversion.c
* babl/babl-db.c
* babl/babl-extension.c
* babl/babl-fish-path.c
* babl/babl-fish-reference.c
* babl/babl-fish-simple.c
* babl/babl-format.c
* babl/babl-model.c
* babl/babl-type.c: applied patch from Jan Heller that changes
the
code to test for a pre-existent instance of a babl class in the
database before creating a new one.

svn path=/trunk/; revision=298

18 years agoMake the "test" array static.
Tor Lillqvist [Mon, 24 Mar 2008 21:31:48 +0000 (21:31 +0000)]
Make the "test" array static.

2008-03-24  Tor Lillqvist  <tml@novell.com>

* babl/babl-type.c: Make the "test" array static.

svn path=/trunk/; revision=297

18 years agotypedef:ed BABL free and malloc function pointers.
Martin Nordholts [Sun, 23 Mar 2008 18:11:11 +0000 (18:11 +0000)]
typedef:ed BABL free and malloc function pointers.

2008-03-23  Martin Nordholts  <martinn@svn.gnome.org>

* babl/babl-memory.[ch]: typedef:ed BABL free and malloc function
pointers.

svn path=/trunk/; revision=296

18 years agoAdded "This considerably improves BABL performance." to latest ChangeLog entry.
Martin Nordholts [Sun, 23 Mar 2008 18:06:12 +0000 (18:06 +0000)]
Added "This considerably improves BABL performance." to latest ChangeLog entry.

svn path=/trunk/; revision=295

18 years agoApplied patch from Jan Heller that introduces list and hash table
Sven Neumann [Sat, 22 Mar 2008 22:09:19 +0000 (22:09 +0000)]
Applied patch from Jan Heller that introduces list and hash table

2008-03-22  Sven Neumann  <sven@gimp.org>

Applied patch from Jan Heller that introduces list and hash
table
functionality and changes the babl database to use coalesced
hashing (bug #523507):

* babl/Makefile.am
* babl/babl-list.[ch]
* babl/babl-hash-table.[ch]: new files providing list and hash
table functionality.

* babl/babl-internal.h: include the new header files.

* babl/babl-db.[ch]: use the new code.

* babl/babl-fish.c: changed accordingly.

svn path=/trunk/; revision=294

18 years agogetenv() can return NULL.
Mukund Sivaraman [Sun, 16 Mar 2008 12:18:25 +0000 (12:18 +0000)]
getenv() can return NULL.

2008-03-16  Mukund Sivaraman <muks@mukund.org>

        * babl/babl-extension.c: getenv() can return NULL.

        * babl/babl-memory.c: Check for NULL in babl_strcat().

svn path=/trunk/; revision=293

18 years agoAdded missing va_end()s.
Mukund Sivaraman [Sun, 16 Mar 2008 12:12:22 +0000 (12:12 +0000)]
Added missing va_end()s.

2008-03-16  Mukund Sivaraman <muks@mukund.org>

        * babl/babl-image.c: Added missing va_end()s.

svn path=/trunk/; revision=292

18 years agoAdded missing dlclose()s.
Mukund Sivaraman [Sun, 16 Mar 2008 12:10:31 +0000 (12:10 +0000)]
Added missing dlclose()s.

2008-03-16  Mukund Sivaraman <muks@mukund.org>

        * babl/babl-extension.c: Added missing dlclose()s.

svn path=/trunk/; revision=291

18 years agodo not add @DL_LIBS@ to link line of babl.
Øyvind Kolås [Sun, 2 Mar 2008 16:48:52 +0000 (16:48 +0000)]
do not add @DL_LIBS@ to link line of babl.

* babl.pc.in: do not add @DL_LIBS@ to link line of babl.

svn path=/trunk/; revision=290

18 years agoApplied patch from dmacks@netspace.org closing bug #519796
Øyvind Kolås [Sun, 2 Mar 2008 10:28:37 +0000 (10:28 +0000)]
Applied patch from dmacks@netspace.org closing bug #519796
* configure.ac:
* babl/Makefile.am:
* tests/Makefile.am: Only -ldl if required, passed automatically via
$LIBS

svn path=/trunk/; revision=289

18 years agopost release version increment to 0.0.21
Øyvind Kolås [Wed, 27 Feb 2008 16:20:37 +0000 (16:20 +0000)]
post release version increment to 0.0.21

* configure.ac: post release version increment to 0.0.21

svn path=/trunk/; revision=286